<?php
/* @var $this PemesananController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Pemesanan',
);

$this->menu=array(
	array('label'=>'Pemesanan', 'url'=>array('index')),
);
?>

<h1>Jumlah Pemesanan Toko : <?php  echo $listProduk[0]['nama_toko']; ?></h1>

<table cellspacing="0" cellpadding="0" border="0" class="table-all"> 
	<thead> 
		<tr> 
			<th>No</th>
			<th>Nama Produk</th>
			<th>Jumlah Pesanan</th>
			<th>Total Harga</th>
		</tr> 
	</thead> 
	<tbody> 
<?php
// print_r($listProduk);
	$no = 0;
	for($i=0;$i<count($listProduk);$i++)
	{
		echo "<tr>";
			echo "<td>" . $no+=1 . "</td>";
			echo "<td><a href = '".Yii::app()->createUrl("/produk/view", array('id' => $listProduk[$i]['kode_produk']))."'>".$listProduk[$i]['nama_produk']."</a></td>";
			echo "<td>".$listProduk[$i]['jml']."</td>";
			echo "<td>".$listProduk[$i]['harga']."</td>";
		echo "</tr>";
	}
?>
	</tbody> 
</table>
<div id="pager" class="pager">
	<form action="">
		<div>
			<img src="gfx/table-first.gif" class="first" alt="First" />
			<img src="gfx/table-prev.gif" class="prev" alt="Previous" />
			<input type="text" class="pagedisplay"/>
			<img src="gfx/table-next.gif" class="next" alt="Next" />
			<img src="gfx/table-last.gif" class="last" alt="Last" />
		</div>
		<select class="pagesize">
			<option selected="selected" value="5">5</option>
			<option value="10">10</option>
			<option value="25">25</option>
			<option value="50">50</option>
		</select>
	</form>
</div>
